package com.tsu.mall.admin.controller;


import com.tsu.mall.admin.service.ICountService;
import com.tsu.mall.common.VO.LayuiTableVO;
import com.tsu.mall.common.VO.ResultVO;
import com.tsu.mall.common.service.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tttttt
 * @since 2023-03-24
 */
@Controller
@RequestMapping("/count")
public class CountController {
@Autowired
private ICountService icountService;
    @GetMapping("/countPage")
    public String countPage() {
        return "count";
    }

    @GetMapping("/list")
    @ResponseBody
    public ResultVO memberCountList(String source,String sourceJoinTime) {
        return icountService.countList(source,sourceJoinTime);
    }


}
